The Quality slider controls the balance between the image quality and the amount of compression. Choosing a higher quality setting reduces the amount of compression, which results in a larger file. You can experiment with different settings and compare results.